package com.yzc.controller;

import com.yzc.model.entity.log.InventoryLog;
import com.yzc.model.entity.ticket_order.OrderStatusLog;
import com.yzc.result.Result;
import com.yzc.service.OrderLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单日志
 */

@RestController
@RequestMapping("/order-logs")
public class OrderLogController {

    @Autowired
    private OrderLogService orderLogService;

    @PostMapping("/OrderLog")
    public Result<Boolean> createOrderLog(@RequestBody OrderStatusLog orderLog) {
        return Result.success(orderLogService.createOrderLog(orderLog));
    }

}